<ion-header>
    <ion-toolbar content-page>
        <ion-title>
            业绩
        </ion-title>
        <ion-buttons end>
            <button ion-button icon-only adpmenutoggle>
                <i class="toolbar-menu"></i>
            </button>
        </ion-buttons>
    </ion-toolbar>

</ion-header>

<ion-content (ionScroll)="contentScrolling()">
    <ion-refresher (ionRefresh)="doRefresh($event)" [pullMax]="800">
        <ion-refresher-content></ion-refresher-content>
    </ion-refresher>
    <div class="result-container">
        <div class="left">
            <img class="me-icon" [src]="personalInfoToken.profileURL"
                 onerror="onerror=null;src='./assets/images/common/icon_headportrait_default.png'">
            <div class="me-name">{{personalInfoToken.nickName?personalInfoToken.nickName:''}}</div>
            <div class="me-level" *ngIf="authLevel">{{personalInfoToken.agentLevel}}</div>
        </div>
        <div class="right">
            <div class="subtitle">本月总净PC</div>
            <div class="subvalue first">{{personalInfo.monthTotalPC == null?'-':personalInfo.monthTotalPC| numberTrans:1}}</div>
            <div class="subtitle second">本月总净APE</div>
            <div class="subvalue second">{{personalInfo.monthTotalAPE == null ?'-':personalInfo.monthTotalAPE | numberTrans:1}}</div>
        </div>
    </div>

    <div class="results" *ngIf="personalInfoToken.agentLevel == 'FA'">
        <div class="person-performance" (click)="goPersonalPerformancePage()"></div>
        <div class="result-row">
            <div class="income" (click)="goToCommission()"></div>
            <div class="mdrt" (click)="openMDRT(personalInfo.hrefMDRT)"></div>
        </div>
    </div>

    <div class="results" *ngIf="personalInfoToken.agentLevel !== 'FA'">
        <div class="person-performance" (click)="goPersonalPerformancePage()"></div>
        <div class="result-left">
            <div class="income" (click)="goToCommission()"></div>
            <div class="mdrt" (click)="openMDRT(personalInfo.hrefMDRT)"></div>
        </div>
        <div class="result-right">
            <div class="team-performance" (click)="goToMyteam()"></div>
        </div>
    </div>
</ion-content>

